/**
 * @file validator/interface
 * @author  fanxl
 */
import type {RulesItem, RulesKey} from '../interface/spec';

export type ValidateResult = true | string;
export type RulesFunType<T extends RulesKey> = (
    inputValue: any,
    param: RulesItem[T],
    parentValue?: any
) => ValidateResult;
